#pragma once
class CLinphoneCore;
 typedef struct osip_from osip_from_t;
class CChatRoom
{
public:
	CChatRoom(CLinphoneCore *plc,char* to);
	~CChatRoom(void);
public:
	CLinphoneCore *lc;
	char  *peer;
	char *route;
	osip_from_t *peer_url;
	void * user_data;
public:
	
	void sendMessage(const char *msg);
	bool chatroomMatches(osip_from_t *from);
	void messageReceived(const char *from, const char *msg);
	void setUserdata(void * ud);
	void*getUserdata();

};
